/*
 * @Author: wuhao930406 1148547900@qq.com
 * @Date: 2023-07-14 13:36:06
 * @LastEditors: wuhao930406 1148547900@qq.com
 * @LastEditTime: 2023-08-14 17:16:12
 * @FilePath: /legion-iot/config/routes.js
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
 */
export default [
  {
    path: "/user",
    routes: [
      {
        path: "/user",
        redirect: "/user/login",
      },
      {
        name: "登录",
        path: "/user/login",
        component: "./user/login",
      },
      {
        name: "404",
        component: "./404",
      },
    ],
  },
  {
    path: "/",
    name: "欢迎使用",
    component: "@/layouts/layout",
    routes: [
      {
        path: "/",
        redirect: "/dashboard",
      },
      {
        name: "智慧大屏",
        path: "/dashboard",
        component: "./dashboard",
      },
      {
        name: "智慧大屏",
        path: "/dashboard3d",
        component: "./dashboard3d",
      },
      {
        name: "远程控制",
        path: "/controls",
        component: "./controls",
      },
      {
        name: "电动自行车",
        path: "/ebikepro",
        component: "./ebikepro",
      },
      {
        name: "物联监测",
        path: "/device",
        routes: [
          {
            name: "设备台账",
            path: "/device/list",
            component: "./device/list",
          },
          {
            name: "设备类型",
            path: "/device/type",
            component: "./device/type",
          },
          {
            name: "备件管理",
            path: "/device/spare",
            component: "./device/spare",
          },
        ],
      },
      {
        name: "维保管理",
        path: "/verb",
        routes: [
          {
            name: "维保合同",
            path: "/verb/contract",
            component: "./verb/contract",
          },
          {
            name: "维保计划",
            path: "/verb/plan",
            component: "./verb/plan",
          },
        ],
      },
      {
        name: "微型消防站",
        path: "/micro",
        component: "./micro",
      },
      {
        name: "教育培训",
        path: "/education",
        component: "./education",
      },
      {
        name: "系统管理",
        path: "/system",
        routes: [
          {
            name: "用户管理",
            path: "/system/users",
            component: "./system/users",
          },
          {
            name: "角色管理",
            path: "/system/roles",
            component: "./system/roles",
          },
          {
            name: "权限管理",
            path: "/system/permissions",
            component: "./system/permissions",
          },
          {
            name: "设备管理",
            path: "/system/devices",
            component: "./system/devices",
          },
          {
            name: "供应商管理",
            path: "/system/suppliers",
            component: "./system/suppliers",
          },
          {
            name: "街道/小区管理",
            path: "/system/street",
            component: "./system/street",
          },
        ],
      },

  

      {
        name: "个人中心",
        path: "/mycenter",
        component: "./mycenter",
      },
      {
        name: "403",
        path: "/403",
        component: "./403",
      },
    ],
  },
  {
    name: "404",
    path: "*",
    component: "./404",
  },
];
